package cn.rulian.base.curd.bo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.rulian.base.common.bo.BaseBo;
import lombok.Getter;
import lombok.Setter;

/**
 * 一个增删改查，是一个bo生成代码的相关配置 
 */
@Getter
@Setter

@Entity
@Table(name = "base_curd_curd")
public class Curd extends BaseBo {

	@Column(length = 20)
	private String code; //编号
	
	@Column(length = 50)
	private String name; //名称

	@Column(length = 200)
	private String boPath; //bo类全路径
	
	@Column(length = 200)
	private String remark; //备注
	
	@Column(length = 20)
	private String windowSize_add; //增加窗口大小
	
	@Column(length = 20)
	private String windowSize_update; //编辑 窗口大小
	
	@Column(length = 20)
	private String windowSize_detail; //详情窗口大小
	
	@Column(length = 50)
	private String defaultOrderFieldName; //默认排序字段ID
	
	@Column(length = 20)
	private String defaultOrderType; //默认排序类型：desc、asc
	
	private Integer tdNum; //增加(修改、详情)页面列数
	
	private Boolean validated; //是否经过验证
	
	private Boolean buildConfig; //是否生成默认配置
	
	private Boolean config; //是否完成curd配置
	
	private Boolean configField; //是否完成属性配置

	@Column(length = 200)
	private String urlTest; //测试URL

	@Column(length = 200)
	private String urlFinal; //正式URL

	@JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8") //json格式化输出，列表显示时用
	private Date addTime; //增加时间

}
